/**
 * axios 处理
 * @module axios
 * @author its-wild
 * @date 2021/05/08
 */

export default function ({ $axios }, inject) {
    // Create a custom axios instance
    const http = $axios.create({
        headers: {
            common: {
                Accept: 'text/plain, */*'
            }
        }
    })

    // Inject to context as $api
    inject('http', http)
}